package iiet.dao;

/**
 * TypeFeeId entity. @author MyEclipse Persistence Tools
 */

public class TypeFeeId implements java.io.Serializable {

	// Fields

	private String type;
	private Long fee;

	// Constructors

	/** default constructor */
	public TypeFeeId() {
	}

	/** full constructor */
	public TypeFeeId(String type, Long fee) {
		this.type = type;
		this.fee = fee;
	}

	// Property accessors

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getFee() {
		return this.fee;
	}

	public void setFee(Long fee) {
		this.fee = fee;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TypeFeeId))
			return false;
		TypeFeeId castOther = (TypeFeeId) other;

		return ((this.getType() == castOther.getType()) || (this.getType() != null
				&& castOther.getType() != null && this.getType().equals(
				castOther.getType())))
				&& ((this.getFee() == castOther.getFee()) || (this.getFee() != null
						&& castOther.getFee() != null && this.getFee().equals(
						castOther.getFee())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getType() == null ? 0 : this.getType().hashCode());
		result = 37 * result
				+ (getFee() == null ? 0 : this.getFee().hashCode());
		return result;
	}

}